package com.scut.graduation.exception;


public class GraduationManagementException extends RuntimeException {

    private Integer code; // 异常状态码
    private String msg; //异常信息

    public GraduationManagementException(Integer code, String msg){
        this.code= code;
        this.msg = msg;
    }


    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "GraduationManagementException{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                '}';
    }
}
